package br.com.jmmarca.dao.impl;

import android.content.Context;
import br.com.jmmarca.dao.generic.AbstractDAO;
import br.com.jmmarca.dao.generic.AbtractTableDefinition;
import br.com.jmmarca.dao.generic.DataManager;
import br.com.jmmarca.model.Evento;

public class EventoDAO extends AbstractDAO<Evento> {
    
    private static EventoDAO instance;

    private EventoDAO(Context context) {
        super(Evento.class,new AbtractTableDefinition<Evento>(Evento.class), new DataManager(context));
    }

    public static EventoDAO getInstance(Context context) {
        if (instance == null) {
            instance = new EventoDAO(context);
        }
        return instance;
    }
}
